﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Form1
{
    public partial class Form2 : Form
    {
        public Form2(string name1,string name2,string name3)
        {
            InitializeComponent();
            Name1 = name1;
            Name2 = name2;
            Name3 = name3;
            nameTextBox1.Text = name1;
            nameTextBox2.Text = name2;
            nameTextBox3.Text = name3;
        }

        public string Name1 { get; set; }

        public string Name2 { get; set; }

        public string Name3 { get; set; }

        private void uiButton1_Click(object sender, EventArgs e)
        {
            Name1 = nameTextBox1.Text;
            Name2 = nameTextBox2.Text;
            Name3 = nameTextBox3.Text;
            this.Close();
        }

        private void uiButton2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
